#pragma once
class CCircuitEditTool
{
public:
	CCircuitEditTool(CICircuit* pCircuit, CDeviceDisplayObj* pDevDisObj,CString sFilePath,vector<double> vecSheetSize);
	~CCircuitEditTool(void);
	bool RunSoftware();
	bool ExcuteTinyCADAndWait(CString sTinyEXE, CString dsnFile);

private:
	bool ResetDeviceCircuit();
	bool GenerateCircuitFile();
	CString GetSoftWarePath();
	CString GetPathByOpenKey(CString strSection, CString strEntry);
	bool GetFileWriteTime(CString sFile,FILETIME &time);

	CDeviceDisplayObj* m_pDevDisObj;
	CString m_sFilePath;
	CString m_sTempDsnPath;
	CICircuit* m_pCircuit;
	double m_dSheetWidth;
	double m_dSheetHeight;
};

